"""北海瞄准老航天（国外）"""
import sys
# 忽略 Windows 系统 DPI 缩放
import ctypes
import pygame

from settings import Settings


class Mian():
    """面"""

    def __init__(self):
        """初始化"""
        # 忽略 Windows 系统 DPI 缩放
        ctypes.windll.user32.SetProcessDPIAware()
        pygame.init()
        self.clock = pygame.time.Clock()
        self.settings = Settings()
        self.screen = pygame.display.set_mode((self.settings.screen_width, self.settings.screen_height))
        pygame.display.set_caption(self.settings.title)

    def run_game(self):
        """面"""
        x, y  = 180, 180
        while True:
            self._check_events()


            

    def _check_events(self):
        """检测输入"""
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                pygame.quit()
                sys.exit()

    def _update_screen(self):
        """刷新屏幕"""
        self.screen.fill()
        pygame.draw.circle(self.screen, (255, 255, 255), (x, y), 4)
        
        pygame.display.flip()
        self.clock.tick(self.settings.fps)
        
        


if __name__ == '__main__':
    mian = Mian()
    mian.run_game()